package day8.pack2;

public final class Bus extends MotoVehicle {

    public static final int BUS_JIN_BEI = 800;
    public static final int BUS_JIN_LONG = 1500;

    public Bus() {}

    public Bus(int seatCount, String no) {
        setSeatCount(seatCount);
        setNo(no);
    }
    private int seatCount;

    public int getSeatCount() {
        return seatCount;
    }

    public void setSeatCount(int seatCount) {
        this.seatCount = seatCount;
    }

    public int calcRent(int days) {
        if(this.getSeatCount() <= 16) {
            return BUS_JIN_BEI * days;
        }
        if(this.getSeatCount() > 16) {
            return BUS_JIN_LONG * days;
        }
        return 0;
    }
}
